<?php error_reporting(0) ?>
<div class="navbar" >
    <div class="navbar-inner" style="position:relative">
        <h6><i class="icon-list"></i>Content</h6>
    </div>
</div>
<ul class="toolbar">
    <li><a href="#" title="Add entry" onclick="TC_CONTENT.onSave()"><i class="icon-save"></i><span>DONE</span></a></li>
    <li><a href="#" title="Refresh" onclick="TC_CONTENT.onCancel()"><i class="icon-list"></i><span>CANCEL</span></a></li>
</ul>
<div class="widget row-fluid">
    <div class="well form-horizontal">
        <input 
            type="hidden" 
            value="<?php echo $item->content_id ?>" 
            id="content_id" name="content_id"
            />
        <form id="_form_edit_panel" name="_form_edit_panel" 
              action="" method="POST" onsubmit="return false;"
              target="integration_asynchronous" autocomplete="off">
            <div class="widget- row-fluid">
                <div class="well form-horizontal" style="border:none">
                    <div class="control-group">
                        <label class="control-label">Title :</label>
                        <div class="controls">
                            <input type="text" 
                                   class="span12 validate[required]"
                                   data-prompt-position="topLeft:-1,-5"
                                   id="content_title" name="content_title" 
                                   value="<?php echo quotes_to_entities($item->content_title) ?>"
                                   />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">Thumb :</label>
                        <div class="controls">
                            <input type="text" 
                                   class="span12 "
                                   data-prompt-position="topLeft:-1,-5"
                                   id="content_thumb" name="content_thumb" 
                                   value="<?php echo quotes_to_entities($item->content_thumb) ?>"
                                   />
                            <i class="icon-picture field-icon" style="cursor:pointer" 
                                    onclick="BrowseServer('#content_thumb')"
                                    title="CHOOSE IMAGE"></i>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">Desc :</label>
                        <div class="controls">
                            <textarea 
                                rows="3"
                                id="content_desc" name="content_desc" 
                                class="span12 validate[required]"
                                data-prompt-position="topLeft:-1,-5"
                                ><?php echo ($item->content_desc) ?></textarea>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label">&nbsp;</label>
                        <div class="controls">
                            <div class="span6">
                                <div>POSITION</div>
                                <input type="number" 
                                    class="span12"
                                    id="content_position" name="content_position" 
                                    value="<?php echo $item->content_position ?>"
                                    />
                            </div>
                            <div class="span6">
                                <div>STATUS</div>
                                <select id="content_status" name="content_status" class=" span12">
                                    <option value="true" <?php if ($item->content_status != 'false') echo 'selected=1' ?>>ENABLE</option>
                                    <option value="false">DISABLE</option>
                                </select>

                            </div>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label">Content :</label>
                        <div class="controls">
                            <textarea 
                                rows="10"
                                id="content_content" name="content_content" 
                                class="span12 validate[required]"
                                data-prompt-position="topLeft:-1,-5"
                                ><?php echo ($item->content_content) ?></textarea>
                        </div>
                    </div>
                    
                    <input type="hidden" 
                           id="content_type" name="content_type" 
                           value="<?php echo !empty($item->content_type) ? quotes_to_entities($item->content_type) : $type ?>"
                           />


                    <div class="control-group">
                        <label class="control-label">&nbsp;</label>
                        <div class="controls">
                            <div>
                                <?php if (!empty($item->content_insert)) echo "Created  : $item->content_insert" ?>
                            </div>
                            <div>
                                <?php if (!empty($item->content_update)) echo "Modified : $item->content_update" ?>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </form>
    </div>
</div>